ns16550: adjust suspend/resume logic
authorJan Beulich <jbeulich@suse.com>
Tue, 8 May 2012 11:34:14 +0000 (13:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 8 May 2012 11:34:14 +0000 (13:34 +0200)
commit0a9c6297b008408b01bce9fb8bd9703068f45c74
tree7f6022ef040377dac3beb9316849920b5e004e1e
parent4ad3ed5beb8bdd439ba71eb7c1c34f7d7c930b1b
ns16550: adjust suspend/resume logic

- no need to read BAR during suspend
- command register is 16-bits rather than 32
- BAR and command register must be restored before trying to access
  the device
- use ps_bdf[] for storing the device coordinates (pb_bdf[] is used to
  store the bridge's ones)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/drivers/char/ns16550.c